package com.deppon.vts.micro.service.logic;

import com.deppon.vts.micro.service.IQuoteService;
import com.deppon.vts.micro.service.biz.PublicBizBaseService;
import com.deppon.vts.micro.service.biz.bean.BizContext;
import com.deppon.vts.micro.service.logic.bean.LogicQuoteRequestEntity;
import com.deppon.vts.micro.service.logic.bean.LogicQuoteResponseEntity;

public abstract class LogicQuoteService<I extends LogicQuoteRequestEntity, R extends LogicQuoteResponseEntity> extends PublicBizBaseService<I, R> 
 	implements IQuoteService<I, R>{
	
	public LogicQuoteService(){
		INTERFACE = "QE";
	}
	
	@Override
	public void process(BizContext<I, R> ctx) throws Exception {
		LogicQuoteRequestEntity request = (LogicQuoteRequestEntity) ctx.getRequest();
		LogicQuoteResponseEntity response = (LogicQuoteResponseEntity) ctx.getResponse();
		//TODO 这里完善服务的通用逻辑
		{
			if(log.isDebugEnabled()){
				log.debug("LogicQuoteService is processing for msgId: {}",this.getMsgId());
			}
		}
		super.process(ctx);
	}
	
	@Override
	public void confirmTccTransaction(BizContext<I, R> ctx) {
		
	}
	
	@Override
	public void cancelTccTransaction(BizContext<I, R> ctx) {
		
	}

}
